<?php
/*
Neu lay kieu nay se bi lay theo cac mo dul cua ung dung truoc (doi khi khong phai la ung dung chua function hien tai
$v_application_id = 0;
if(isset($_REQUEST['hdn_application_id'])){
	$v_application_id = $_REQUEST['hdn_application_id'];
}*/
//Duoc lay tu qry_single_function
$v_application_id =$arr_single_function[0][6];
$v_item_status = -1;
if (_is_sqlserver()) {
	//Lay tat cac Modul cua ung dung hien thoi	
	$cmd = mssql_init("User_ModulGetAllByApp",$conn);
	@mssql_bind($cmd,"@p_status",$v_item_status,SQLINT4);
	@mssql_bind($cmd,"@p_application_id",$v_application_id,SQLINT4);
	$result = @mssql_execute($cmd);
	$arr_all_modul = _get_row_to_array($result);
	@mssql_free_result($result);
}?>


